package com.jiangyao.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 讲师
 * </p>
 *
 * @author yangyongchuan
 * @since 2020-08-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel("讲师")
public class Lecturer extends Model<Lecturer> {

	private static final long serialVersionUID = -6090581833847547315L;

	@TableId(value = "lecturer_id", type = IdType.AUTO)
	@ApiModelProperty("讲师ID")
	private Integer lecturerId;

	/**
	 * 姓名
	 */
	@ApiModelProperty("姓名")
	private String lecturerName;

	/**
	 * 电话
	 */
	@ApiModelProperty("电话")
	private String lecturerPhone;

	/**
	 * 头像
	 */
	@ApiModelProperty(value = "头像")
	private String lecturerPhoto;

	/**
	 * 简介
	 */
	@ApiModelProperty("简介")
	private String lecturerDesc;

	/**
	 * 添加时间
	 */
	@ApiModelProperty("添加时间")
	private Date createTime;

	/**
	 * 状态 1 在职 0离职
	 */
	@ApiModelProperty("状态 1 在职 0离职")
	private Integer status;


	@Override
	protected Serializable pkVal() {
		return this.lecturerId;
	}

}
